package gui.Student;

import javax.swing.JPanel;
import java.awt.SystemColor;
import javax.swing.JList;
import javax.swing.JButton;
import javax.swing.border.TitledBorder;

import System.MainControl;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JScrollBar;

public class GradesReview extends JPanel implements ActionListener{
	/**
	 * 
	 */
	private static final long serialVersionUID = -4155376399908941789L;
	private JButton btnBack;
	
	
	
	/**
	 * Create the panel.
	 */
	public GradesReview() {
		super();
		initialize();
	}
	/**
	 * Create the panel.
	 */
	private void initialize() {
		setBorder(new TitledBorder(null, "Grades Review", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		setBackground(SystemColor.activeCaption);
		setBounds(100, 100, 622, 320);
		setLayout(null);
		
		JList list = new JList();
		list.setBounds(43, 25, 164, 187);
		add(list);
		
		JList list_1 = new JList();
		list_1.setBounds(226, 25, 164, 187);
		add(list_1);
		
		JButton btnNewButton = new JButton("Next");
		btnNewButton.setBounds(115, 223, 89, 23);
		add(btnNewButton);
		
		JButton btnNewButton_1 = new JButton("Back");
		btnNewButton_1.setBounds(227, 223, 89, 23);
		add(btnNewButton_1);
		
		JButton btnS = new JButton("Download");
		btnS.setFont(MainControl.guiFont);
		btnS.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			}
		});
		btnS.setBounds(154, 257, 125, 23);
		add(btnS);
		
		JScrollBar scrollBar = new JScrollBar();
		scrollBar.setBounds(25, 25, 17, 187);
		add(scrollBar);
		
		btnBack = new JButton("Back");
		btnBack.setFont(MainControl.guiFont);
		btnBack.addActionListener(this);
		btnBack.setBounds(418, 237, 80, 23);
		add(btnBack);
	}
			@Override			
			public void actionPerformed(ActionEvent e) 
			{
				if(e.getSource() == btnBack)
				{
					MainControl.setGUI(MainControl.currentUser.getRole(), this);
				}
			};
	}
